<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Western State Wilderness Pursuits Database</title>

<%= stylesheet_link_tag "default" %>
<%= stylesheet_link_tag "tablesorter" %>

<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "jquery-ui" %>
<%= javascript_include_tag "jquery.tablesorter" %>

</head>
<body>
<table style="width: 100%;">
<tr>
    <td valign="top">
        <h1>Western&nbsp;State&nbsp;College&nbsp;Wilderness&nbsp;Pursuits&nbsp;Database</h1>
    </td>
    <td>
        <div style="float:right; text-align:center; margin-left: 20px;">
            <a href="/login/logout">
                <%= image_tag("/images/Icons/logout.jpg", :style => "border: none;") %><br />
            </a>
            <%= link_to "Log out", {:controller => "login", :action => 'logout'}%>
        </div>
        <div style="float:right; text-align:center; margin-left: 20px;">
            <a href="/employee/index">
                <%= image_tag("/images/Icons/go-home.jpg", :style => "border: none;") %><br />
            </a>
            <%= link_to "Home", {:controller => 'employee', :action => 'index'}%>
        </div>
        <div style="font-size: 1.4em; margin-top: 25px; float: right;">
            <% @employee_label = Employee.find_by_id(session[:employee_id])%>
            <%= @employee_label.first_name %>&nbsp;<%= @employee_label.last_name %>&nbsp;&nbsp;
        </div>
    </td>
</tr>
</table>

<div style="border: solid 1px red; padding: 5px 20px 20px 20px; margin-top:20px;">
<% if flash[:notice] -%>
	<div id="notice"><%= flash[:notice] %></div>
<% end -%>
<%= yield %>
</div>
</body>
</html>
